﻿using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace de.rwth.rz.campus.labs.Mailer2010.Layouts.Mailer2010
{
    public partial class MailerSettings : LayoutsPageBase
    {
        internal static Guid fGuid = new Guid("89c884ec-27f5-4cd9-9a02-d2ec0629d7b6");


        public override string PageToRedirectOnCancel
        {
            get
            {
                //return base.PageToRedirectOnCancel;
                return "/_layouts/listedit.aspx?List={" + listid.Value + "}";
            }
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            //SPFeature feature = SPContext.Current.WebFeatures[fGuid];
            listid.Value = new Guid(Request.QueryString["List"]).ToString();
        }

        //protected void Page_Load(object sender, EventArgs e)
        //{
        //    SPFeature feature = SPContext.Current.WebFeatures[fGuid];
        //    listid.Value = new Guid(Request.QueryString["List"]).ToString();
        //}
    }
}
